package com.mazaiting.blog.service

import com.mazaiting.blog.domain.Visitor
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit4.SpringRunner

@RunWith(SpringRunner::class)
@EnableAutoConfiguration
@SpringBootTest
class VisitorServiceTest {
    @Autowired
    private lateinit var service: VisitorService

    @Test
    fun saveVisitor() {
        val visitor = Visitor("0:0:0:0:0:0:0:2","0:0:0:0:0:0:0:2",53733)
        val isSuccess = service.saveVisitor(visitor)
        println(isSuccess)
    }
}